package com.nm.commons.util;

/**
 * Created by hewu on 2016/6/18 0018.
 */
public abstract class StringUtil<T> {
    /**
     * 字符串是否为空
     *
     * @param str
     * @return
     */
    public static boolean isNull(String str) {
        return null == str || str.length() == 0;
    }

    /**
     * 对象是否为空
     *
     * @param t
     * @param <T>
     * @return
     */
    public static <T> boolean isNull(T t) {

        return null == t;
    }
}
